<template>
	<view class="">
		<uni-nav-bar shadow title="" @clickLeft="$wanlshop.back(1)" height="88rpx" :border="false" :fixed="true" backgroundColor="#FFFFFF"
			:shadow="false" left-icon="left"></uni-nav-bar>
			<view class="CardContainer2" style="flex-direction: column;">
				<view class="city" v-for="(i,n) in mechanism" :key='n'  >
					<view class="" v-for="(item,index) in i" :key="index" @click="toList(item)" >
						{{item.name}}
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		props: {

		},
		data() {
			return {
				brand:[],
				mechanism:[]

			}
		},
		created() {
			this.getListData()
		},

		methods: {
			getListData() {
				this.$api.get({
					url: '/index/index',
			
					success: res => {
						console.log(res)
						
						this.mechanism= res.mechanism
						this.brand = res.brand
					
						
					}
				})
			},
			toList(i){
				console.log(i)
				uni.navigateTo({
					url:'/pages/teacher/partners/list?id='+i.id
				})
			}
			}
			

	}
</script>

<style lang="scss">
	.CardContainer2{
		background: #fff;
		padding: 20rpx ;
		font-size: 32rpx;
		line-height: 1.5;
		color: #333;
		display: flex;
		flex-wrap: wrap;
		// margin: 0 30rpx 30rpx;
		justify-content: space-between;
		.ccmain {
			display: flex;
			justify-content: center;
			align-items: center;
			width: 33.33%;
		
			// text-align: center;
			.ccimg {
				width: 92rpx;
				height: 92rpx;
				margin-left: 10rpx;
		
				image {
					width: 100%;
					height: 100%;
				}
			}
		}
		.city{
			display: flex;
			justify-content: space-between;
			margin-top: 20rpx;
			view{
				width: 100px;
				border: 2rpx solid #e2e2e2;
				text-align: center;
				
			}
		}
	}
</style>
